home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
marionettemadness.swf
/
scripts
/
frame_1
/
DoAction_4.as
< prev
next >
Wrap
Text File
|
2007-10-01
|
2KB
|
136 lines
function morphArm(tgt, yVal, sVal, oTT, oTTy, oD)
{
if(!oTT)
{
oTT = baseTweenTime;
}
if(!oTTy)
{
oTTy = baseTweenType;
}
if(!oD)
{
oD = 0;
}
tgt.tween(["_y","_yscale"],[yVal,sVal],oTT,oTTy,oD);
}
function frameMe(tgt, val, oTT, oTTy, oD)
{
if(!oTT)
{
oTT = baseTweenTime;
}
if(!oTTy)
{
oTTy = baseTweenType;
}
if(!oD)
{
oD = 0;
}
tgt.frameTo(val,oTT,oTTy,oD);
}
function slideMeY(tgt, val, oTT, oTTy, oD, cb)
{
if(!oTT)
{
oTT = baseTweenTime;
}
if(!oTTy)
{
oTTy = baseTweenType;
}
if(!oD)
{
oD = 0;
}
tgt.tween("_y",val,oTT,oTTy,oD,cb);
}
function slideMeX(tgt, val, oTT, oTTy, oD)
{
if(!oTT)
{
oTT = baseTweenTime;
}
if(!oTTy)
{
oTTy = baseTweenType;
}
if(!oD)
{
oD = 0;
}
tgt.tween("_x",val,oTT,oTTy,oD);
}
function slideMeXY(tgt, xVal, yVal, oTT, oTTy, oD)
{
if(!oTT)
{
oTT = baseTweenTime;
}
if(!oTTy)
{
oTTy = baseTweenType;
}
if(!oD)
{
oD = 0;
}
tgt.tween(["_x","_y"],[xVal,yVal],oTT,oTTy,oD);
}
function tintMe(tgt, pct, oTT, oTTy, oD)
{
if(!oTT)
{
oTT = baseTweenTime;
}
if(!oTTy)
{
oTTy = baseTweenType;
}
if(!oD)
{
oD = 0;
}
tgt.tintTo("0xFF0000",pct,oTT,oTTy,oD);
}
function alphaMe(tgt, val, oTT, oTTy, oD)
{
if(!oTT)
{
oTT = baseTweenTime;
}
if(!oTTy)
{
oTTy = null;
}
if(!oD)
{
oD = 0;
}
tgt.alphaTo(val,oTT,oTTy,oD);
}
function dimMe(tgt, val, oTT, oTTy, oD)
{
if(!oTT)
{
oTT = baseTweenTime;
}
if(!oTTy)
{
oTTy = null;
}
if(!oD)
{
oD = 0;
}
tgt.brightnessTo(val,oTT,oTTy,oD);
}
function buttonRoll(o, d)
{
alphaMe(o.rollMC,!d ? 0 : 100,0.5);
}
com.mosesSupposes.fuse.ZigoEngine.simpleSetup(com.mosesSupposes.fuse.Shortcuts,com.mosesSupposes.fuse.PennerEasing,com.mosesSupposes.fuse.Fuse,com.mosesSupposes.fuse.FuseFMP);
baseTweenTime = 1;
baseTweenType = null;